package com.itheima.dubbo.api;

import com.itheima.domain.mongo.Friend;
import com.itheima.domain.vo.PageResult;

import java.util.List;

/**
 * @author 阿鹏
 * @date 2021/2/2 22:04
 */

public interface FriendApi {

    void addFriend(long userId, long friendId);

    PageResult<Friend> findFriendList(int page, int pagesize, long userId, String keyword);

    boolean isFriend(Long userId, Long targetUserId);

    void removeSingleFriend(Long userId, Long targetUserId);

    void removeTimeLine(Long friendId, Long userId);

    List<Friend> findFriendListByUserId(Long userId);
}
